package com.tcd.explore.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

/**
 * <p>
 * 物损信息详情表
 * </p>
 *
 * @author Jarle
 * @since 2021-05-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ObjectDamageInfo implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 物损信息编号
     */
    @TableId(value = "object_damage")
    private Integer objectDamage;

    /**
     * 赔案编号(外键)
     */
    @TableField("claim_mainId")
    private Long claimMainid;

    /**
     * 物损部件名称
     */
    @TableField("object_damage_name")
    private String objectDamageName;

    /**
     * 损失程度
     */
    @TableField("loss_degree")
    private String lossDegree;

    /**
     * 定损单价
     */
    @TableField("loss_price")
    private BigDecimal lossPrice;

    /**
     * 数量
     */
    @TableField("loss_number")
    private Integer lossNumber;

    /**
     * 定损费用小计
     */
    @TableField("loss_total")
    private BigDecimal lossTotal;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /*
     *定损状态
     */
    @TableField(value = "loss_status")
    private String lossstatus;
    /**
     * 版本（乐观锁）
     */
    @Version
    private Integer version;
}
